package com.zff.rental.vo.apartment.room;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * 添加房间参数
 *
 * @author HCY
 */
@Data
public class BatchAddRoomParams {
    /**
     * 公寓Id
     */
    @NotNull(message = "公寓ID不能为空")
    private Long apartmentId;
    /**
     * 房间名称列表
     */
    @NotNull(message = "房间名字列表不能为空")
    @Size(min = 1, message = "房间名字列表不能为空")
    private List<Room> roomList;

    @Data
    public static class Room {
        /**
         * 房间名称
         */
        private String name;

        /**
         * 楼层
         */
        private Integer floor;
    }
}
